package cn.com.cifi.mars.constant;

/**
* @Description:  待办事项状态枚举
* @Param:
* @return:
* @Author: wy
* @Date:
*/

public enum TodoStatusEnum {

			
	DEFAULT("0", "待处理"), 
	COMPLETE("1", "已处理"),
	DELETE("2", "删除"),
	;

	private String key;
	private String value;

	TodoStatusEnum(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public String getValue() {
		return value;
	}
	
	
	public static String getValueByKey(String key){
        for(TodoStatusEnum versionTypeEunm:TodoStatusEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
}
